var webPath = "";
$(document).ready(function(){
	webPath = $("#webPath").val();
	var msg = $("#message").val();
	if(msg != ""){
		alert(msg);
	}
});

function submitTheme(){
	if($("#thName").val() == ""){
		alert("请输入模板名称！")
		return false;
	}
	var method = $("#method").val();
	if(method == null || method == ""){
		method = "create";
	}
	document.form1.action = webPath + "/admin/theme!"+method+".action";
	document.form1.submit();
}

function goBack(){
	document.form1.action = webPath + "/admin/theme!list.action";
	document.form1.submit();
}